package com.micheal.pattern.adapter.passport;

import com.micheal.pattern.adapter.ResultMsg;
import com.micheal.pattern.adapter.User;

/**
 * Created by micheal on 2018/4/10/0010.
 */
public class ThirdService extends LoginService {

    public ResultMsg loginForQQ(String openId){
        User user = (User)super.register(openId, null).getData();
        return super.login(user.getUsername(), user.getPassword());
    }

}
